<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
 <%@taglib prefix="s" uri="/struts-tags"%>
<%@page import="zozopo.user.operations.*" %>
<%@page import="zozopo.operations.business.*" %>
<%@page import="zozopo.database.*" %>
<%@page import="java.sql.*" %>
<%
//String uri = (String)session.getAttribute("uri");

String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;


BusiDatabaseManager databaseConnection = new BusiDatabaseManager();
Connection conn = databaseConnection.getConnection();


UserTB user = (UserTB)session.getAttribute("userInfo"); 


databaseConnection.releaseConnection(conn);
//*/
%>

  	<s:if test="%{#session.userInfo == null}">
  			<table width="100%" border="0" cellpadding="0" bgcolor="#e5f3ff" cellspacing="0" style= "border:1px solid #ffffff; border-top-color:#6cb1f1;">
				<tr >
					<td >
							   其它操作
					</td>
				</tr>
			</table>
			<table>
				<tr>
					<td >
						<a href="<%=basePath %>/user/login.jsp">登录ZOZOPO</a>
					</td>
				</tr>
				<tr>
					<td >
						<a href="<%=basePath %>/user/regist.jsp">注册用户</a>
					</td>
				</tr>
				<tr>
					<td >
						<a href="<%=basePath %>/user/active.jsp">激活用户</a>
					</td>
				</tr>
				<tr>  
					<td >
						<a href="<%=basePath %>/user/foundpw.jsp">忘记密码?</a>
					</td>
				</tr>
			</table>
	</s:if>
  <s:else>
  
  
  
     <table width="100%" border="0" cellpadding="0" bgcolor="#e5f3ff" cellspacing="0" style= "border:1px solid #ffffff; border-top-color:#6cb1f1;">
				<tr >
					<td >
							   用户基本操作
					</td>
				</tr>
		</table>
				 	<table>
						<tr>
							<td >
								<a href="<%=basePath %>/user/modifyinfo.jsp">修改信息</a>
							</td>
						</tr>
						<tr>
							<td >
								<a href="<%=basePath %>/user/modifypassword.jsp">修改密码</a>
							</td>
						</tr>
						<tr>
							<td >
								<a href="<%=basePath %>/user/userinfo.action?usermail=<s:property value="#session.userInfo.user_email"/>">查看基本信息</a>
							</td>
						</tr>
						
						<tr>
							<td >
								<a href="<%=basePath %>/user/usertopic.action?usermail=<s:property value="#session.userInfo.user_email"/>">查看自己发布的文章</a>
							</td>
						</tr>
					</table>
					
					<table width="100%" border="0" cellpadding="0" bgcolor="#e5f3ff" cellspacing="0" style= "border:1px solid #ffffff; border-top-color:#6cb1f1;">
				<tr >
					<td >
							   其它操作
					</td>
				</tr>
				</table>
				 	<table>
						<tr>
							<td >
								<a href="<%=basePath %>/manual/release.jsp">发布文章</a>
							</td>
						</tr>
						<tr>
							<td >
								<a href="<%=basePath %>/manual/releasenewgoods.jsp">新品上架</a>
							</td>
						</tr>
						
						<%
						
					
						if(UserOS.userFlagLeve(user, 0, 1)){
						%>
							<tr>
								<td >
									<a href="<%=basePath %>/manual/prephotomangae.action">像册管理</a>
								</td>
							</tr>
							<tr>
								<td >
									<a href="<%=basePath %>/manual/uploadimage.jsp">上传图片</a>
								</td>
							</tr>
							
							<tr>
								<td >
									<a href="<%=basePath %>/manual/uploadimage2.jsp">批量上传图片</a>
								</td>
							</tr>
							
							<tr>
								<td >
									<a href="<%=basePath %>/manual/swfuploadimage.jsp">SWFUpload 批量上传图片(可多选)</a>
								</td>
							</tr>
						<%} %>
						<%
							if(UserOS.userFlagLeve(user, 4, 1)){
						%>
						<tr>
							<td >
								<a href="<%=basePath %>/manual/prerecommend.action">推荐正品网店</a>
							</td>
						</tr>
						<tr>
							<td >
								<a href="<%=basePath %>/business/store.jsp">网店管理</a>
							</td>
						</tr>
						<%} 
							if(UserOS.userFlagLeve(user, 2, 1)){
						%>
						<tr>
							<td >
								<a href="<%=basePath %>/manual/poll.jsp">投票主题</a>
							</td>
						</tr>
						<%} %>
						
						
					</table>
							
			<%
					
							if(UserOS.userFlagLeve(user, 32, 1)){
						%>
						<table width="100%" border="0" cellpadding="0" bgcolor="#e5f3ff" cellspacing="0" style= "border:1px solid #ffffff; border-top-color:#6cb1f1;">
				<tr >
					<td >
							网站业务
					</td>
				</tr>
			</table>
			<table>
			
					
					<%
							
							if(UserOS.userFlagLeve(user, 32, 1)){
						%>
					<tr>
						<td>
							<a href="<%=basePath %>/business/addstore.jsp">添加正品网店</a>
							
						</td>
					</tr>
					
					
					
					<tr>
						<td>
							<a href="<%=basePath %>/business/storelist.action">正品网店例表</a>
						</td>
					</tr>
					
					<tr>
						<td>
							<a href="<%=basePath %>/business/managestore.action">管理网店</a>
						</td>
					</tr>
					
					<%} %>
					
					<tr>
							<td >
								<a href="<%=basePath %>/business/preipreport.action">网店IP报表</a>
							</td>
						</tr>
						
						<% 
							if(UserOS.userFlagLeve(user, 33, 1)){
						%>
						<tr>
							<td >
								<a href="<%=basePath %>/business/managegoods.action">管理手工商品推荐</a>
							</td>
						</tr>
						
						<tr>
							<td >
								<a href="<%=basePath %>/business/addgoods.jsp">添加手工商品推荐</a>
							</td>
						</tr>
						<%} %>
					
			</table>
						 	
						<%
							} 
							if(UserOS.userFlagLeve(user, 16, 1)){
						%>
						<table width="100%" border="0" cellpadding="0" bgcolor="#e5f3ff" cellspacing="0" style= "border:1px solid #ffffff; border-top-color:#6cb1f1;">
				<tr >
					<td >
							网站管理
					</td>
				</tr>
			</table>
			<table>
			
					
					<%
						if(UserOS.userFlagLeve(user, 17, 1)){
					%>
						<tr>
							<td>
								<a href="<%=basePath %>/background/user/limitedmanage.action">用户管理</a>
								
							</td>
						</tr>
						
						<tr>
							<td>
								<a href="#">数据字典管理(未加入)</a>
								
							</td>
						</tr>
					<%} %>
	
			</table>
						 	
					<%} %>
		</s:else>
